package com.lysj.admin.auth;

import com.lysj.admin.auth.feign.LogFeign;
import com.lysj.admin.common.log.aop.SystemLogAspect;
import com.lysj.admin.utils.annotation.LyDataApplication;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

import javax.annotation.Resource;

@LyDataApplication
@EnableFeignClients
public class AuthApplication {

    @Resource
    private LogFeign logFeign;

    public static void main(String[] args) {
        SpringApplication.run(AuthApplication.class, args);
    }

    @Bean
    public SystemLogAspect systemLogAspect(){
        return new SystemLogAspect(logFeign);
    }
}

